package com.shangxian.giveithome.service;

import com.shangxian.giveithome.entity.UserDetails;
import com.shangxian.giveithome.entity.petCard.PetCardImg;
import com.shangxian.giveithome.result.Result;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author coderFu
 * @create 2021/5/1
 */
@Service
public interface PetCardImgService {

  /**
   * 上传宠物头像文件
   * @param header
   * @param id
   * @param multipartFile
   * @return
   */
  PetCardImg inset(UserDetails header, Long id, MultipartFile multipartFile);

  /**
   * 根据图片信息删除图片
   * @param header
   * @param petCardImg
   * @return
   */
  Result delete(UserDetails header, List<PetCardImg> petCardImg);

  /**
   * 根据文件路径下载二维码
   * @param list
   * @throws IOException
   */
  void downloadQrCode(List<Integer> list) throws IOException;



}
